src=UdpSocket.cpp main.cpp
TARGET=test
${TARGET}:${src}
	g++ ${src} -o ${TARGET}


libsrc=myServer.c
LIBTARGET=libmyServer.so

${LIBTARGET}:${libsrc}
	gcc -shared -fPIC ${libsrc} -o ${LIBTARGET}

.PHONY:all clean install

all:${TARGET} ${LIBTARGET}

clean:
	rm -f ${TARGET} ${LIBTARGET}
install:                  
	sudo cp ${LIBTARGET} /usr/lib/
	sudo cp myAVLTree.h /usr/include/